import time


from selenium import webdriver
from selenium.webdriver.common.by import By


driver=webdriver.Edge()
driver.get("http://localhost:8081/regA.html")

# tag_name 按照元素标签名进行定位  页面重复太多,所以工作中不用
driver.find_element(By.TAG_NAME,"input").send_keys("dzyxA")
# driver.find_element(By.ID,"h1").send_keys("dzyxA")


#

# 4 关闭浏览器驱动对象
time.sleep(10)  #代码暂停10s中
driver.quit()
